import service from './request'

export function getClassesList (params = {}) {
  return service({
    url: '/classes',
    method: 'get',
    params,
  })
}

export function classesCreate (classes) {
  return service({
    url: '/classes/add',
    method: 'post',
    data: classes,
  })
}

export function classesEdit (classes) {
  return service({
    url: '/classes/edit',
    method: 'post',
    data: classes,
  })
}

export function classesDelete (ids) {
  return service({
    url: '/classes/delete',
    method: 'post',
    data: { ids },
  })
}
